Skip to content

Comments

[3.12] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391)#115001

Merged
serhiy-storchaka merged 1 commit intopython:3.12from
serhiy-storchaka:backport-3ddc515-3.12
Feb 4, 2024
Merged

[3.12] gh-114388: Fix warnings when assign an unsigned integer member (GH-114391)#115001
serhiy-storchaka merged 1 commit intopython:3.12from
serhiy-storchaka:backport-3ddc515-3.12

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Feb 4, 2024

  • Fix a RuntimeWarning emitted when assign an integer-like value that is not an instance of int to an attribute that corresponds to a C struct member of type T_UINT and T_ULONG.
  • Fix a double RuntimeWarning emitted when assign a negative integer value to an attribute that corresponds to a C struct member of type T_UINT.

(cherry picked from commit 3ddc515)

…member (pythonGH-114391)

* Fix a RuntimeWarning emitted when assign an integer-like value that
  is not an instance of int to an attribute that corresponds to a C
  struct member of type T_UINT and T_ULONG.
* Fix a double RuntimeWarning emitted when assign a negative integer value
  to an attribute that corresponds to a C struct member of type T_UINT.
(cherry picked from commit 3ddc515)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant